﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace stackFluent.Domain {
    /// <summary>
    /// Node的分类，有多级关系，只隶属于一个领域（Region）
    /// </summary>
    public class Category {
        [Key]
        public Guid ID { get; set; }

        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        public int FatherId { get; set; }

        public virtual ICollection<Tech> Techs { get; set; }
    }
}